package com.tsj.spzx.cart;

import com.tsj.spzx.annotation.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableUserWebMvcConfiguration    // 自定义的登录过滤，拦截器的注解  或者在pom.xml中引入相应模块
@EnableFeignClients(basePackages = {"com.tsj.spzx.client.feign"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  // 排除数据库的自动化配置，Cart微服务不需要访问数据库
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}
